package com.itheima.wallet.service;


import com.itheima.wallet.api.TradeServiceApi;
import com.itheima.wallet.dao.TradeMapper;
import com.itheima.wallet.model.Trade;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/*@Service(version = "1.0.0",interfaceClass = TradeServiceApi.class,retries = 2)
public class TradeService implements TradeServiceApi {

    @Autowired
    TradeMapper tradeMapper;

    @Override
    public List<Trade> findTradeLog(Long accountId) {
        List<Trade> trades = tradeMapper.selectTradeByAccountId(accountId);
        return trades;
    }
}*/
